package com.technician.model.dto.user;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 接收用户登录请求
 */
@Data
public class UserLoginRequest implements Serializable {

    private static final long serialVersionUID = -4788079827219437398L;

    @NotBlank(message = "账号不能为空")
    @Size(min = 4,max = 20,message = "账号必须大于4位小于20位")
    private String userName;

    @NotBlank(message = "密码不能为空")
    @Size(min = 6,max = 20,message = "密码必须大于6位小于20位")
    private String password;
}
